<?php

namespace App\Models\Purchase;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class PurchaseOrderProcessSub extends Model
{
    protected $table = 'purchase_order_process_sub';
    public $timestamps = false;
    protected $primaryKey = 'id';
    protected $guarded = ['_token'];

    public function getOrderWeightAttribute($value)
    {
        return $value / 10;
    }

    public function getStockinWeightAttribute($value)
    {
        return $value / 10;
    }

    public function getWarehousingWeightAttribute($value)
    {
        return $value / 10;
    }

    public function getResidueWeightAttribute($value)
    {
        return $value / 10;
    }
}
